From: Carlos Garnacho Date: Thu, 18 Nov 2021 00:16:43 +0000 (+0100) Subject: popupMenu: Drop unused blockSourceEvents switch X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~530^2^2~182 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=63725ef0eff42a586fdcd13e862eeeae2313256e;p=gnome-shell.git popupMenu: Drop unused blockSourceEvents switch This could be used to selectively ignore events on the source actor, but is now unused. Part-of: --- diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 0cb4970c1..72396f107 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -493,10 +493,6 @@ var PopupMenuBase = class { this.isOpen = false; - // If set, we don't send events (including crossing events) to the source actor - // for the menu which causes its prelight state to freeze - this.blockSourceEvents = false; - this._activeMenuItem = null; this._settingsActions = { }; @@ -1323,8 +1319,7 @@ var PopupMenuManager = class { let source = menu.sourceActor; if (source) { - if (!menu.blockSourceEvents) - this._grabHelper.addActor(source); + this._grabHelper.addActor(source); menudata.enterId = source.connect('enter-event', () => this._onMenuSourceEnter(menu)); menudata.focusInId = source.connect('key-focus-in', () => {